<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/26 0026
 * Time: 上午 11:28
 */
namespace app\admin\controller;
use app\message\controller\chat\Api;
use app\message\controller\chat\Chat_mes;

class Chat extends Base{
    public function chat_index(){

        #聊天列表
        $list = new Chat_mes();
        $res = $list->chat_list();
//dump($res);
        $this->assign([
            'list'  =>  $res['data']['list'],
        ]);

        return $this->fetch('./public/user/chat_mes.html');
//        return $this->fetch('./public/user/index.html');
    }
}